package net.wanho.study.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Author：汤小洋
 * Date：2023-07-03 9:47
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp implements Serializable {
    // id,name,salary
    private Integer id;
    private String name;
    private Double salary;
    private Dept dept; // 对象属性

    public Emp(String name, Double salary, Dept dept) {
        this.name = name;
        this.salary = salary;
        this.dept = dept;
    }
}
